package com.choco.jsondb.reader;

import com.choco.jsondb.Context;
import com.choco.jsondb.utils.FileUtil;

import java.util.Map;

public class KVReader implements Reader{
    private Map<String, String> jsonPairs;

    public KVReader(Context context) {
        jsonPairs = (Map<String, String>) FileUtil.read(context);
    }

    @Override
    public String get(String key) {
        return jsonPairs.get(key);
    }

    @Override
    public String getAll() {
        return null;
    }

    @Override
    public String get() {
        return null;
    }
}
